import request from "@/config/axios/service";
//配方
export function AddRecipe(data) {
  return request({
    url: "/AvpRecipe/Add",
    method: "post",
    data,
  });
}
export function updateRecipe(data) {
  return request({
    url: "/AvpRecipe/Update",
    method: "put",
    data,
  });
}
export function getRecipe(params) {
  return request({
    url: "/AvpRecipe/GetPageList",
    method: "get",
    params,
  });
}
//配方类型
export function AddRecipeType(data) {
  return request({
    url: "AvpRecipeType/Add",
    method: "post",
    data,
  });
}
export function updateRecipeType(data) {
  return request({
    url: "/AvpRecipeType/Update",
    method: "put",
    data,
  });
}
export function getRecipeType(params) {
  return request({
    url: "/AvpRecipeType/GetPageList",
    method: "get",
    params,
  });
}
//配方属性
export function AddRecipeAttributes(data) {
  return request({
    url: "/AvpRecipeAttributes/Add",
    method: "post",
    data,
  });
}
export function updateRecipeAttributes(data) {
  return request({
    url: "/AvpRecipeAttributes/Update",
    method: "put",
    data,
  });
}
export function getRecipeAttributes(params) {
  return request({
    url: "/AvpRecipeAttributes/GetPageList",
    method: "get",
    params,
  });
}
//配方点位
export function AddRecipeLocation(data) {
  return request({
    url: "/AvpRecipeLocation/Add",
    method: "post",
    data,
  });
}
export function updateRecipeLocation(data) {
  return request({
    url: "/AvpRecipeLocation/Update",
    method: "put",
    data,
  });
}
export function getRecipeLocation(params) {
  return request({
    url: "/AvpRecipeLocation/GetPageList",
    method: "get",
    params,
  });
}
